import request from '@/utils/request'

export function portList(data) {
  return request({
    url: 'port/portList',
    method: 'post',
    data
  })
}
export function createPort(data) {
  return request({
    url: 'port/createPort',
    method: 'post',
    data
  })
}
export function updatePort(data) {
  return request({
    url: 'port/updatePort',
    method: 'post',
    data
  })
}
export function delPort(data) {
  return request({
    url: 'port/delPort',
    method: 'post',
    data
  })
}

export function myPortList(data) {
  return request({
    url: 'myPort/portList',
    method: 'post',
    data
  })
}
export function createMyPort(data) {
  return request({
    url: 'myPort/createPort',
    method: 'post',
    data
  })
}
export function updateMyPort(data) {
  return request({
    url: 'myPort/updatePort',
    method: 'post',
    data
  })
}
export function delMyPort(data) {
  return request({
    url: 'myPort/delPort',
    method: 'post',
    data
  })
}
export function portConfig(data) {
  return request({
    url: 'port/portConfig',
    method: 'post',
    data
  })
}

